<!--
//访问首页数据查询，以及分页
//收集参数
var name = $("#query-name").val();
var owner = $("#query-owner").val();
var startDate = $("#query-startDate").val();
var endDate = $("#query-endDate").val();
//当前页数，默认第一页，数据每页默认为10条
var pageNo = 0;
//当前每页数据,
var pageSize = 10;


//发送请求

$.ajax({
url: "workbench/activity/indexBody",
data: {
name: name,
owner: owner,
startDate: startDate,
endDate: endDate,
pageNo: pageNo,
pageSize: pageSize,
},
Type: 'post',
dataType: 'json',
success: function (data) {
console.log("数据接收成功"),
//显示总条数
$("#totalRowsB").text(data.i);
console.log(data.i);
//遍历数据
var htmlStr = "";
$.each(data.activities, function (index, obj) {
htmlStr += "<tr class=\"active\">";
  htmlStr += "<td><input type=\"checkbox\" value=\"" + obj.id + "\"/></td>";
  htmlStr += "<td><a style=\"text-decoration: none; cursor: pointer;\" onclick=\"window.location.href='detail.jsp';\">" + obj.name + "</a></td>";
  htmlStr += "<td>" + obj.owner + "</td>";
  htmlStr += "<td>" + obj.startDate + "</td>";
  htmlStr += "<td>" + obj.endDate + "</td>";
  htmlStr += "</tr>";

console.log(obj.name);

});
$("#tBody").html(htmlStr);
}


});-->
{"0":{}(String),"1":{}(String),"length":2(String),
"prevObject":{"0":{"location":{"ancestorOrigins":{"0":"http://127.0.0.1:8080"}(String),
"href":"http://127.0.0.1:8080/crm/workbench/activity/index"(String),
"origin":"http://127.0.0.1:8080"(String), "protocol":"http:"(String),
"host":"127.0.0.1:8080"(String), "hostname":"127.0.0.1"(String),
"port":"8080"(String), "pathname":"/crm/workbench/activity/index"(String),
"search":""(String), "hash":""}(String), "jQuery1111013819404111501776":1}(String),
"context":{"location":{"ancestorOrigins":{"0":"http://127.0.0.1:8080"}(String),
"href":"http://127.0.0.1:8080/crm/workbench/activity/index"(String),
"origin":"http://127.0.0.1:8080"(String), "protocol":"http:"(String),
"host":"127.0.0.1:8080"(String), "hostname":"127.0.0.1"(String),
"port":"8080"(String), "pathname":"/crm/workbench/activity/index"(String),
"search":""(String), "hash":""}(String), "jQuery1111013819404111501776":1}(String),
"length":1}(String), "context":{"location":{"ancestorOrigins":{"0":"http://127.0.0.1:8080"}(String),
"href":"http://127.0.0.1:8080/crm/workbench/activity/index"(String),
"origin":"http://127.0.0.1:8080"(String), "protocol":"http:"(String),
"host":"127.0.0.1:8080"(String), "hostname":"127.0.0.1"(String),
"port":"8080"(String), "pathname":"/crm/workbench/activity/index"(String),
"search":""(String), "hash":""}(String),
"jQuery1111013819404111501776":1}(String), "selector":"#tBody input[type='checkbox']:checked"}(String)